#include <stdio.h>

int main()
{
	int arr[10] = { 9,8,7,6,5,4,3,2,1,0 };
	int si = sizeof(arr) / sizeof(arr[0]);
	for (int i = 0; i < si - 1; i++)
	{
		for (int j = 0; j < si - 1 - i; j++)
		{
			if (arr[j] > arr[j + 1])
			{
				int tep = 0;
				tep = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = tep;
			}
		}
	}
	int k = 0;
	for (k = 0; k <= (si - 1); k++)
	{
		printf("%d", arr[k]);
		printf("\n");
	}
	return 0;
}